package com.mode.command.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 16:09
 */
public class DeleteCommond extends Commond{

    Receiver receiver;

    public DeleteCommond(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {

        System.out.printf("删除命令！");
        receiver.doTask();
    }
}
